package com.pureut.storage.dubbo;

import com.pureut.storage.service.PublicSelectSysDateChangeService;
import com.sale.storage.api.RemotePublicSelectService;
import com.sale.storage.api.dto.SysDateChangeDto;
import com.sale.storage.api.vo.UpdateDateChangeVo;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * 销售发货dubbo
 */
@RequiredArgsConstructor
@DubboService
@Service
public class RemotePublicSelectServiceImpl implements RemotePublicSelectService {

   private final PublicSelectSysDateChangeService publicSelectSysDateChangeService;

    /**
     * 出库查询
     * @param documentNumber
     * @return
     */
    @Override
    public SysDateChangeDto outSelect(String documentNumber) {
        return publicSelectSysDateChangeService.outSelect(documentNumber);
    }

    /**
     * 入库查询
     * @param documentNumber
     * @return
     */
    @Override
    public SysDateChangeDto inSelect(String documentNumber) {
        return publicSelectSysDateChangeService.inSelect(documentNumber);
    }

    /**
     * 库内查询
     * @param documentNumber
     * @return
     */
    @Override
    public SysDateChangeDto kuneSelect(String documentNumber) {
        return publicSelectSysDateChangeService.kuneSelect(documentNumber);
    }

    /**
     * 出库修改
     * @param updateDateChangeVo
     * @return
     */
    @Override
    public boolean outUpdate(UpdateDateChangeVo updateDateChangeVo) {
        return publicSelectSysDateChangeService.outUpdate(updateDateChangeVo);
    }

    /**
     * 入库修改
     * @param updateDateChangeVo
     * @return
     */
    @Override
    public boolean inUpdate(UpdateDateChangeVo updateDateChangeVo) {
        return publicSelectSysDateChangeService.inUpdate(updateDateChangeVo);
    }

    /**
     * 库内修改
     * @param updateDateChangeVo
     * @return
     */
    @Override
    public boolean kuneUpdate(UpdateDateChangeVo updateDateChangeVo) {
        return publicSelectSysDateChangeService.kuneUpdate(updateDateChangeVo);
    }
}
